package com.geektime.hello;

import cn.hutool.core.convert.Convert;

import java.util.Arrays;

/**
 * @Author DRevelation
 * @Date 2020-08-04 下午 13:18
 * @Desc
 */
public class ConvertDemo {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 10; i++) {
            sb.append(i).append(",");
        }
        String result = sb.substring(0, sb.length() - 1);
        System.out.println(result);
        System.out.println(Arrays.toString(Convert.toStrArray(result)));
    }
}
